package com.example.common.enums;

public enum LType {
    Self(0, "院内自提"),
    Logistics(1, "物流配送"),
    ;

    private final Integer value;
    private final String description;

    LType(Integer value, String description) {
        this.value = value;
        this.description = description;
    }

    public Integer getName() {
        return value;
    }

    public String getDescription() {
        return description;
    }

    public static String valueToDesc(Integer value) {
        if (value == 0) {
            return Self.getDescription();
        } else if (value == 1) {
            return Logistics.getDescription();
        } 
        return null;
    }
}
